<?php
$values = array();

while ($sRow = mysql_fetch_array($cStanga)){
    $values[] = $sRow['order'];
    $min = min($values);

    if (strpos($_SERVER['REQUEST_URI'], "/index.html") || $_GET['pg'] == ''){
        if($min == $sRow['order'] )
            echo '<div class="ct"><img src="templates/default/images/corner-exterior-sus.png" width="25" height="15"></div>';
    }

    //search
    if ($sRow['m_id'] == '5')
        include DIR_MODULES . 'search/index.php';
    //news
    elseif ($sRow['m_id'] == '4'){
        if($_GET['pg'] == 'offers')
            include DIR_MODULES . 'news/c_stanga.php';
        else
            include DIR_MODULES . 'news/index.php';
    }
    //multimedia (player video sau galerie)
    if ($sRow['type'] == 'mmgallery' || $sRow['type'] == 'mmvideo')
        include DIR_MODULES . 'multimedia/index.php';
    //newsletter
    elseif ($sRow['m_id'] == '6')
        include DIR_MODULES . 'newsletter/index.php';
    //plata in rate
    elseif ($sRow['m_id'] == '7')
        include DIR_MODULES . 'plata_in_rate/index.php';
    //modul top
    if ($sRow['type'] == 'top')
        include DIR_MODULES . 'top5/index.php';
    //modul oferte speciale
    if ($sRow['type'] == 'ofertespeciale')
        include DIR_MODULES . 'oferte_speciale/index.php';
}
?>